package org.tis.tools.demo.module.swagger.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 用户对象
 * @author shiyunlai
 * @date 2018/07/23
 */
@ApiModel("用户")
@AllArgsConstructor
@Data
@ToString
public class User {

    @ApiModelProperty(required = false, value = "数据的全局ID,系统自动生产")
    private String GUID;
    @ApiModelProperty(required = true, value = "用户代码,业务上对用户的编码")
    private String userCode;
    @ApiModelProperty(required = true, value = "用户姓名")
    private String userName;
    @ApiModelProperty(required = true, value = "用户年龄")
    private Integer age;
    @ApiModelProperty(required = true, value = "用户生日")
    private Date birthday;
    @ApiModelProperty(required = true, value = "默认联系方式GUID")
    private String defaultContactsGUID;

    public User(String guid) {
        this.GUID = guid;
    }
}
